﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000CE5 RID: 3301
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class PileItem : IMessage<PileItem>, IMessage, IEquatable<PileItem>, IDeepCloneable<PileItem>, IBufferMessage
	{
		// Token: 0x17002991 RID: 10641
		// (get) Token: 0x06009382 RID: 37762 RVA: 0x00187D8C File Offset: 0x00185F8C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<PileItem> Parser
		{
			get
			{
				return PileItem._parser;
			}
		}

		// Token: 0x17002992 RID: 10642
		// (get) Token: 0x06009383 RID: 37763 RVA: 0x00187D93 File Offset: 0x00185F93
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return PileItemReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17002993 RID: 10643
		// (get) Token: 0x06009384 RID: 37764 RVA: 0x00187DA5 File Offset: 0x00185FA5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return PileItem.Descriptor;
			}
		}

		// Token: 0x06009385 RID: 37765 RVA: 0x00187DAC File Offset: 0x00185FAC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public PileItem()
		{
		}

		// Token: 0x06009386 RID: 37766 RVA: 0x00187DB4 File Offset: 0x00185FB4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public PileItem(PileItem other) : this()
		{
			this.itemId_ = other.itemId_;
			this.itemNum_ = other.itemNum_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06009387 RID: 37767 RVA: 0x00187DE5 File Offset: 0x00185FE5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public PileItem Clone()
		{
			return new PileItem(this);
		}

		// Token: 0x17002994 RID: 10644
		// (get) Token: 0x06009388 RID: 37768 RVA: 0x00187DED File Offset: 0x00185FED
		// (set) Token: 0x06009389 RID: 37769 RVA: 0x00187DF5 File Offset: 0x00185FF5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint ItemId
		{
			get
			{
				return this.itemId_;
			}
			set
			{
				this.itemId_ = value;
			}
		}

		// Token: 0x17002995 RID: 10645
		// (get) Token: 0x0600938A RID: 37770 RVA: 0x00187DFE File Offset: 0x00185FFE
		// (set) Token: 0x0600938B RID: 37771 RVA: 0x00187E06 File Offset: 0x00186006
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint ItemNum
		{
			get
			{
				return this.itemNum_;
			}
			set
			{
				this.itemNum_ = value;
			}
		}

		// Token: 0x0600938C RID: 37772 RVA: 0x00187E0F File Offset: 0x0018600F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as PileItem);
		}

		// Token: 0x0600938D RID: 37773 RVA: 0x00187E1D File Offset: 0x0018601D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(PileItem other)
		{
			return other != null && (other == this || (this.ItemId == other.ItemId && this.ItemNum == other.ItemNum && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600938E RID: 37774 RVA: 0x00187E5C File Offset: 0x0018605C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.ItemId != 0U)
			{
				num ^= this.ItemId.GetHashCode();
			}
			if (this.ItemNum != 0U)
			{
				num ^= this.ItemNum.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600938F RID: 37775 RVA: 0x00187EB4 File Offset: 0x001860B4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06009390 RID: 37776 RVA: 0x00187EBC File Offset: 0x001860BC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06009391 RID: 37777 RVA: 0x00187EC8 File Offset: 0x001860C8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.ItemNum != 0U)
			{
				output.WriteRawTag(88);
				output.WriteUInt32(this.ItemNum);
			}
			if (this.ItemId != 0U)
			{
				output.WriteRawTag(120);
				output.WriteUInt32(this.ItemId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06009392 RID: 37778 RVA: 0x00187F24 File Offset: 0x00186124
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.ItemId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.ItemId);
			}
			if (this.ItemNum != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.ItemNum);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06009393 RID: 37779 RVA: 0x00187F7C File Offset: 0x0018617C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(PileItem other)
		{
			if (other == null)
			{
				return;
			}
			if (other.ItemId != 0U)
			{
				this.ItemId = other.ItemId;
			}
			if (other.ItemNum != 0U)
			{
				this.ItemNum = other.ItemNum;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06009394 RID: 37780 RVA: 0x00187FCC File Offset: 0x001861CC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06009395 RID: 37781 RVA: 0x00187FD8 File Offset: 0x001861D8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 88U)
				{
					if (num != 120U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.ItemId = input.ReadUInt32();
					}
				}
				else
				{
					this.ItemNum = input.ReadUInt32();
				}
			}
		}

		// Token: 0x0400384C RID: 14412
		private static readonly MessageParser<PileItem> _parser = new MessageParser<PileItem>(() => new PileItem());

		// Token: 0x0400384D RID: 14413
		private UnknownFieldSet _unknownFields;

		// Token: 0x0400384E RID: 14414
		public const int ItemIdFieldNumber = 15;

		// Token: 0x0400384F RID: 14415
		private uint itemId_;

		// Token: 0x04003850 RID: 14416
		public const int ItemNumFieldNumber = 11;

		// Token: 0x04003851 RID: 14417
		private uint itemNum_;
	}
}
